import Request from '@/api/request'
var request = new Request().http

export interface OrderType {
	   total:number,
	   description:string,
	   // 微信用户唯一标识
	   openId:string
}
export interface ToPayData {
	timeStamp: string,
	nonceStr: string,
	wxPackage:string, 
	signType: string,
	paySign:string,
	outTradeNo:string
}
//查询活动列表
export function getList(data) {
    return request({
        url: "/applet/activity/list",
        method: "GET",
		data
    })
}
//查询活动记录
export function getactList(data) {
    return request({
        url: "/applet/activity/signed",
        method: "GET",
		data
    })
}
//活动列表详情
export function detailTo(data: { activityId: number }) {
    return request({
        url: "/applet/activity/detail",
        method: "GET",
		data
    })
}
//报名活动
export function signup(data) {
	console.log(data,211111111)
    return request({
        url: "/applet/activity/signup",
        method: "Post",
		header: { 'content-type': 'application/x-www-form-urlencoded' },
		data
    })
}
